import numpy as np

arr = np.array([0, 0, 1, 2, 3, 4])
count = np.bincount(arr)
print(count)
